package se.webbzon.oschi01.sound;

public interface Sound {
	
	/** Plays the sound from the current position. Returns true if
	 * the sound was successfully started. The sound is automatically
	 * stopped when the end of the sound is reached. **/
	public void play();
	
	/** Returns true if the sound is not paused and the end of the
	 * sound has not yet been reached. **/
	public boolean isPlaying();
	
	/** Pauses the playback of the sound. Returns true if
	 * the sound was successfully paused. **/
	public void pause();
	
	/** Stops the sound and releases all resources associated with it.
	 * After the sound has stopped there is not guarantee that it can
	 * be replayed. This however depends on the implementation of the
	 * sound. **/
	public void stop();

}
